More gnutls memory fixes.
authorChong Yidong <cyd@gnu.org>
Thu, 27 Oct 2011 08:07:28 +0000 (16:07 +0800)
committerChong Yidong <cyd@gnu.org>
Thu, 27 Oct 2011 08:07:28 +0000 (16:07 +0800)
commitd4cf58b117b5ba3b385badd5c48a81c443058d21
tree0b82b1f58c922b43d49b9e6e645d387eae505148
parentf00450a31dd8e71f1486a0a366df8b71c6dd48a4
More gnutls memory fixes.

* src/gnutls.c (emacs_gnutls_deinit): Deinit the gnutls_state if it is
non-NULL, regardless of GNUTLS_INITSTAGE.
(Fgnutls_boot): Cleanups.  Call emacs_gnutls_deinit if we signal
an error.  Set process slots as soon as we allocate them.

* src/gnutls.h (GNUTLS_LOG, GNUTLS_LOG2): Fix macros.

* src/process.c (make_process): Set gnutls_state to NULL.
src/ChangeLog
src/gnutls.c
src/gnutls.h
src/process.c